home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java Primer Plus
/
Java Primer Plus (Waite Group Proess)(1996).iso
/
chapter9
/
brothers
/
UncleFrank.java
< prev
Wrap
Text File
|
1995-12-31
|
452b
|
21 lines
package brothers;
// ------------------ The Uncle Class ----------------- //
public class UncleFrank {
Dad A = new Dad();
public UncleFrank() {
// A.sportscar = true; // ERROR! Dad only!
A.fishing_boat = true; // no problem
A.golf_clubs = true; // go ahead
// A.familycar = true; // ERROR! Dad and Son only!
A.lawnmower = true; // Yeah, sure, anybody.
// A.pubprot=true;
}
}